-
-
Notifications
You must be signed in to change notification settings - Fork 18.4k
REF: share code ArrayManager/BlockManager #40338
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
REF: share code ArrayManager/BlockManager #40338
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks!
Just one comment about not sharing _normalize_axis
return tuple(len(ax) for ax in self.axes) | ||
|
||
def _normalize_axis(self, axis): | ||
# switch axis to follow BlockManager logic |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Can you leave this one in their respective classes?
Although the code is the same, they actually have the opposite purpose (they are used in different places in AM and BM, which probably points to the fact I should have named them differently ..), and while converting more methods to normal axis logic (xref #40075), the method will also change in AM code.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
sure, will update
Thanks! |
No description provided.